<template>
	<div class="" style="width: 100%;">
		<head-top></head-top>
		<div style="width: 100%; display:flex;flex-flow:row;margin: 30px 0;align-items: center;justify-items: center; ">



			<div style="margin-left: 100px;">修改人：</div>
			<el-select v-model="fixer" size="small" clearable filterable placeholder="请选择" @change="show_pw">
				<el-option v-for="item in worker_list" :key="item.label" :label="item.label" :value="item.value">
				</el-option>
			</el-select>



			<el-button style="margin-left: 5%;" size="mini" type="primary" @click="visible=!visible">新增
			</el-button>

			<el-button style="margin-left: 5%;" size="mini" type="success" @click="refleash()">刷新
			</el-button>


			<div style="margin-left: 100px;">只看使用产品：</div>
			<el-switch style="margin-left: 30px;height: 30px;  " v-model="useflag" active-color="#13ce66"
				inactive-color="#ff4949" @change="get_account_list">
			</el-switch>





		</div>

		<div style="width: 100%; display:flex;flex-flow:row;margin: 30px 0;align-items: center;justify-items: center; ">



			<div style="margin-left: 100px;">program_code：</div>
			<el-select style="width: 30%;" v-model="accountchoice" size="small" clearable filterable placeholder="请选择"
				@change="get_tradesys_account()">
				<el-option v-for="item in account_options" :key="item.label" :label="item.label" :value="item.value">
				</el-option>
			</el-select>

			<!-- 	<div  style="margin-left: 100px;">check_msg：</div>
			<div  style="margin-left: 3px;">{{account_data['check_msg']}}</div>
			 -->
			<el-button style="margin-left: 100px;" size="mini" type="danger" @click="check_config()">检查
			</el-button>



			<div style="margin-left: 10%;">对标账户：</div>

			<el-select  style="width: 30%;" v-model="accountcompare" size="small" clearable filterable placeholder="请选择"
				@change="get_tradesys_account_compare()">
				<el-option v-for="item in account_options" :key="item.label" :label="item.label" :value="item.value">
				</el-option>
			</el-select>

		</div>

		<div style="display:flex;flex-flow:row; width: 100%;">


			<div
				:style="'display:flex;flex-flow:column; margin:0 40px 100px 40px; background-color: white; width: 45%; font-size: 14px;  '">

				<div class="input_item" style="background-color: #E0FFFF;">
					<span class="input_item_title">product_name：
					<span style="color: red;">(关联的产品中文不唯一)</span>
					</span>
					<el-select  style="width: 300px;" v-model="account_data['product_name']" size="small" clearable filterable placeholder="请选择" @change=" change_cell('product_name')" >
						<el-option v-for="item in product_options" :key="item.label" :label="item.label"
							:value="item.value" >
						</el-option>
					</el-select>
					
					
				</div>
				<div class="input_item" style="background-color: #E0FFFF;">
					<span class="input_item_title">prod_code：
					<span style="color: red;">(关联的产品代码不唯一)</span>
					</span>
					<el-select  style="width: 300px;" v-model="account_data['prod_code']" size="small" clearable filterable placeholder="请选择" allow-create @change=" change_cell('prod_code')" >
						<el-option v-for="item in product_code_options" :key="item.label" :label="item.label"
							:value="item.value" >
						</el-option>
					</el-select>
					
				</div>
				
				
				<div class="input_item" style="background-color: #E0FFFF;">
					<span class="input_item_title">account_brokerage：
					<span style="color: red;">(两个字 自定义)</span>
					</span>
					<el-input v-model="account_data['account_brokerage']" size="small" style="width: 300px;"
						@change=" change_cell('account_brokerage')">
					</el-input>
				</div>
				<div class="input_item" style="background-color: #E0FFFF;">
					<span class="input_item_title">account_brokerage_total：
					<span style="color: red;">(四个字 自定义 )</span>
					</span>
					<el-input v-model="account_data['account_brokerage_total']" size="small" style="width: 300px;"
						@change=" change_cell('account_brokerage_total')">
					</el-input>
				</div>
				<div class="input_item" style="background-color: #E0FFFF;">
					<span class="input_item_title">account_num：
					<span style="color: red;">(账号)</span>
					</span>
					
					<el-input v-model="account_data['account_num']" size="small" style="width: 300px;"
						@change=" change_cell('account_num')">
					</el-input>
				</div>
				
				<div class="input_item" style="background-color: #E0FFFF;">
					<span class="input_item_title">pb1：</span>
					<el-input v-model="account_data['pb1']" size="small" style="width: 300px;"
						@change=" change_cell('pb1')">
					</el-input>
				</div>
				<div class="input_item" style="background-color: #E0FFFF;">
					<span class="input_item_title">pb2：
					<span style="color: red;" v-show="account_data && account_data['server'] && account_data['server'].includes('zxzq')">(中信需要填客户号 )</span>
					</span>
					<el-input v-model="account_data['pb2']" size="small" style="width: 300px;"
						@change=" change_cell('pb2')">
					</el-input>
				</div>
				<div class="input_item" style="background-color: #E0FFFF;">
					<span class="input_item_title">login_pwd：</span>
					<el-input v-model="account_data['login_pwd']" size="small" style="width: 300px;"
						@change=" change_cell('login_pwd')">
					</el-input>
				</div>
				<div class="input_item" style="background-color: #E0FFFF;">
					<span class="input_item_title">transact_pwd：</span>
					<el-input v-model="account_data['transact_pwd']" size="small" style="width: 300px;"
						@change=" change_cell('transact_pwd')">
					</el-input>
				</div>
				<div class="input_item" style="background-color: #E0FFFF;">
					<span class="input_item_title">division_name：</span>
					<el-input v-model="account_data['division_name']" size="small" style="width: 300px;"
						@change=" change_cell('division_name')">
					</el-input>
				</div>
				<div class="input_item" style="background-color: #E0FFFF;">
					<span class="input_item_title">netvalue_site：</span>
					<el-input v-model="account_data['netvalue_site']" size="small" style="width: 300px;"
						@change=" change_cell('netvalue_site')">
					</el-input>
				</div>
				
				<div class="input_item" style="background-color: #E0FFFF;">
					<span class="input_item_title">上海毛佣金：</span>
					<el-input v-model="account_data['feerate_maoyongjin_sh']"  size="small" style="width: 300px;" @change=" change_cell('feerate_maoyongjin_sh')" >
					</el-input>
				
				</div>
				<div class="input_item" style="background-color: #E0FFFF;">
					<span class="input_item_title">深圳毛佣金：</span>
					<el-input v-model="account_data['feerate_maoyongjin_sz']"  size="small" style="width: 300px;" @change=" change_cell('feerate_maoyongjin_sz')" >
					</el-input>
				
				</div>
				<div class="input_item" style="background-color: #E0FFFF;">
					<span class="input_item_title">上海过户费：</span>
					<el-input v-model="account_data['feerate_guohufei_sh']"  size="small" style="width: 300px;" @change=" change_cell('feerate_guohufei_sh')">
					</el-input>
				
				</div>
				<div class="input_item" style="background-color: #E0FFFF;">
					<span class="input_item_title">深圳过户费：</span>
					<el-input v-model="account_data['feerate_guohufei_sz']"  size="small" style="width: 300px;" @change=" change_cell('feerate_guohufei_sz')">
					</el-input>
				
				</div>
				<div class="input_item" style="background-color: #E0FFFF;">
					<span class="input_item_title">最低毛佣金：</span>
					<el-input v-model="account_data['feerate_maoyongjin_min']"  size="small" style="width: 300px;" @change=" change_cell('feerate_maoyongjin_min')">
					</el-input>
				
				</div>
				<div class="input_item" style="background-color: #E0FFFF;">
					<span class="input_item_title">流量费用：</span>
					<el-input v-model="account_data['feerate_liuliangfee']"  size="small" style="width: 300px;" @change=" change_cell('feerate_liuliangfee')">
					</el-input>
				
				</div>
				<div class="input_item" style="background-color: #E0FFFF;">
					<span class="input_item_title">预扣费用：</span>
					<el-input v-model="account_data['feerate_yukou']"  size="small" style="width: 300px;" @change=" change_cell('feerate_yukou')">
					</el-input>
				
				</div>
				
				<div class="input_item" style="background-color: #FFFACD;">
					<span class="input_item_title">期货自动操作标志：</span>
					<el-select v-model="account_data['auto_flag']" size="small" style="width: 300px;" collapse-tags
						placeholder="请选择" @change=" change_cell('auto_flag')">
						<el-option v-for="item in use_options" :key="item.value" :label="item.label"
							:value="item.value">
						</el-option>
					</el-select>
				</div>

				<div class="input_item" style="background-color: #FFFACD;">
					<span class="input_item_title">交易范围：</span>
					<el-select v-model="account_data['symbol_range']" size="small" style="width: 300px;" collapse-tags
						placeholder="请选择" @change=" change_cell('symbol_range')">
						<el-option v-for="item in symbol_range_options" :key="item.value" :label="item.label"
							:value="item.value">
						</el-option>
					</el-select>
				</div>
				<div class="input_item" style="background-color: #FFFACD;">
					<span class="input_item_title">交易模式：</span>
					<el-select v-model="account_data['trade_mode']" size="small" style="width: 300px;" collapse-tags
						placeholder="请选择" @change=" change_cell('trade_mode')">
						<el-option v-for="item in trade_mode_options" :key="item.value" :label="item.label"
							:value="item.value">
						</el-option>
					</el-select>
				</div>
				<div class="input_item" style="background-color: #FFFACD;">
					<span class="input_item_title">signal版本：</span>
					<el-select v-model="account_data['signal_type']" size="small" style="width: 300px;" collapse-tags
						placeholder="请选择" @change=" change_cell('signal_type')">
						<el-option v-for="item in signal_options" :key="item.value" :label="item.label"
							:value="item.value">
						</el-option>
					</el-select>
				</div>
				<div class="input_item" style="background-color: #FFFAAA;">
					<span class="input_item_title">special_tag：</span>
					<el-input v-model="account_data['special_tag']"  size="small" style="width: 300px;"  placeholder="特殊标志"  @change=" change_cell('special_tag')">
					</el-input>

				</div>
				
				

				<div class="input_item" style="background-color: #CCFFCC;">
					<span class="input_item_title">program_code：</span>
					<el-input v-model="account_data['program_code']" disabled size="small" style="width: 300px;"
						@change=" change_cell('program_code')">
					</el-input>

				</div>
				<div class="input_item" style="background-color: #CCFFCC;">
					<span class="input_item_title">account：</span>
					<el-input v-model="account_data['account']" size="small" style="width: 300px;"
						@change=" change_cell('account')">
					</el-input>

				</div>
				<div class="input_item" style="background-color: #CCFFCC;">
					<span class="input_item_title">server：</span>
					<el-select v-model="account_data['server']" size="small" style="width: 300px;" collapse-tags
						placeholder="请选择" @change=" change_cell('server')">
						<el-option v-for="item in server_list" :key="item.value" :label="item.label"
							:value="item.value">
						</el-option>
					</el-select>

				</div>
				<div class="input_item" style="background-color: #CCFFCC;">
					<span class="input_item_title">account_type：</span>
					<el-select v-model="account_data['account_type']" size="small" style="width: 300px;" collapse-tags
						placeholder="请选择" @change=" change_cell('account_type')">
						<el-option v-for="item in account_type_options" :key="item.value" :label="item.label"
							:value="item.value">
						</el-option>
					</el-select>
				</div>
				<div class="input_item" style="background-color: #CCFFCC;">
					<span class="input_item_title">account_zwname：</span>
					<el-input v-model="account_data['account_zwname']" size="small" style="width: 300px;"
						@change=" change_cell('account_zwname')">
					</el-input>

				</div>
				<div class="input_item" style="background-color: #CCFFCC;">
					<span class="input_item_title">git_prod_name：
					<span style="color: red;">(股票必填)</span>
					</span>
					<el-input v-model="account_data['git_prod_name']" size="small" style="width: 300px;"
						@change=" change_cell('git_prod_name')">
					</el-input>

				</div>
				<div class="input_item" style="background-color: #CCFFCC;">
					<span class="input_item_title">use_flag：
					<span style="color: red;">(必填)</span>
					</span>
					<el-select v-model="account_data['use_flag']" size="small" style="width: 300px;" collapse-tags
						placeholder="请选择" @change=" change_cell('use_flag')">
						<el-option v-for="item in use_options" :key="item.value" :label="item.label"
							:value="item.value">
						</el-option>
					</el-select>
				</div>
				<div class="input_item" style="background-color: #CCFFCC;">
					<span class="input_item_title">ipo_flag：</span>
					<el-select v-model="account_data['ipo_flag']" size="small" style="width: 300px;" collapse-tags
						placeholder="请选择" @change=" change_cell('ipo_flag')">
						<el-option v-for="item in use_options" :key="item.value" :label="item.label"
							:value="item.value">
						</el-option>
					</el-select>
				</div>

				<div class="input_item" style="background-color: #CCFFCC;">
					<span class="input_item_title">product_strategy：
						<span style="color: red;">(必填)</span>
					</span>
					<el-select v-model="account_data['product_strategy']" size="small" style="width: 300px;"
						collapse-tags placeholder="请选择" @change=" change_cell('product_strategy')">
						<el-option v-for="item in strategy_options" :key="item.value" :label="item.label"
							:value="item.value">
						</el-option>
					</el-select>
				</div>

				<div class="input_item" style="background-color: #CCFFCC;">
					
					<i style=" padding-right: 30px;color: green;" v-show="account_data['check_ts_admin_port']=='good'"  class="el-icon-check"></i>
					<i style=" padding-right: 30px;color: red;"   v-show="account_data['check_ts_admin_port']!='good'" class="el-icon-close"></i>
					
					<span class="input_item_title">ts_admin_port：</span>
					
					<el-input  v-model="account_data['ts_admin_port']" size="small" style="width: 300px; position: relative;"
						@change=" change_cell('ts_admin_port')">
					
					</el-input>
					<i style=" padding-left: 30px;color: green;"  v-show="account_data['check_ts_admin_port']=='good'"  class="el-icon-check"></i>
					<i style=" padding-left: 30px;color: red;"   v-show="account_data['check_ts_admin_port']!='good'" class="el-icon-close"></i>
					
					
				</div>
				
				<div class="input_item" style="background-color: #CCFFCC;">
					
					<i style=" padding-right: 30px;color: green;" v-show="account_data['check_cpu']=='good'"  class="el-icon-check"></i>
					<i style=" padding-right: 30px;color: red;"   v-show="account_data['check_cpu']!='good'" class="el-icon-close"></i>
					
					<span class="input_item_title">cpu_ts：</span>
					
					<el-input  v-model="account_data['cpu_ts']" size="small" style="width: 300px; position: relative;"
						@change=" change_cell('cpu_ts')">
					
					</el-input>
					<i style=" padding-left: 30px;color: green;"  v-show="account_data['check_cpu']=='good'"  class="el-icon-check"></i>
					<i style=" padding-left: 30px;color: red;"   v-show="account_data['check_cpu']!='good'" class="el-icon-close"></i>
					
					
				</div>
				<div class="input_item" style="background-color: #CCFFCC;">
					
					<i style=" padding-right: 30px;color: green;" v-show="account_data['check_signal_target_path']=='good'"  class="el-icon-check"></i>
					<i style=" padding-right: 30px;color: red;"   v-show="account_data['check_signal_target_path']!='good'" class="el-icon-close"></i>
					
					<span class="input_item_title">signal_target_path：</span>
					
					<el-input  v-model="account_data['signal_target_path']" size="small" style="width: 300px; position: relative;"
						@change=" change_cell('signal_target_path')">
					
					</el-input>
					<i style=" padding-left: 30px;color: green;"  v-show="account_data['check_signal_target_path']=='good'"  class="el-icon-check"></i>
					<i style=" padding-left: 30px;color: red;"   v-show="account_data['check_signal_target_path']!='good'" class="el-icon-close"></i>
					
					
				</div>
				<div class="input_item" style="background-color: #CCFFCC;">
					
					<i style=" padding-right: 30px;color: green;" v-show="account_data['check_directory']=='good'"  class="el-icon-check"></i>
					<i style=" padding-right: 30px;color: red;"   v-show="account_data['check_directory']!='good'" class="el-icon-close"></i>
					
					<span class="input_item_title">check_directory：</span>
					<el-input  v-model="account_data['check_directory']" size="small" style="width: 300px; position: relative;"
						@change=" change_cell('check_directory')">
					
					</el-input>
					
					
					<i style=" padding-left: 30px;color: green;"  v-show="account_data['check_directory']=='good'"  class="el-icon-check"></i>
					<i style=" padding-left: 30px;color: red;"   v-show="account_data['check_directory']!='good'" class="el-icon-close"></i>
					
					
				</div>
				
				
				
				<div class="input_item" style="background-color: #CCFFCC;">
					<span class="input_item_title">qs_channel_name：</span>
					<el-input v-model="account_data['qs_channel_name']" size="small" style="width: 300px;"
						@change=" change_cell('qs_channel_name')">
					</el-input>

				</div>
				

				<div class="input_item" style="background-color: #CCFFCC;">
					<span class="input_item_title">eod_pos_name：</span>
					<el-input v-model="account_data['eod_pos_name']" size="small" style="width: 300px;"
						@change=" change_cell('eod_pos_name')">
					</el-input>

				</div>
				<div class="input_item" style="background-color: #CCFFCC;">
					<span class="input_item_title">sod_pos_name：</span>
					<el-input v-model="account_data['sod_pos_name']" size="small" style="width: 300px;"
						@change=" change_cell('sod_pos_name')">
					</el-input>

				</div>
				<div class="input_item" style="background-color: #CCFFCC;">
					<span class="input_item_title">json_key：
					<span style="color: red;">(股票必填)</span>
					</span>
					<el-input v-model="account_data['json_key']" size="small" style="width: 300px;"
						@change=" change_cell('json_key')">
					</el-input>
				
				</div>
				
				<div class="input_item" style="background-color: #CCFFCC;">
					<span class="input_item_title">transfer_proxy：</span>
					<el-select v-model="account_data['transfer_proxy']" size="small" style="width: 300px;" collapse-tags
						placeholder="请选择" @change=" change_cell('transfer_proxy')">
						<el-option v-for="item in proxy_options" :key="item.value" :label="item.label"
							:value="item.value">
						</el-option>
					</el-select>
				</div>

				<div class="input_item" style="background-color: #CCFFCC;">
					<span class="input_item_title">signal_server_type：</span>
					<el-input v-model="account_data['signal_server_type']" size="small" style="width: 300px;"
						@change=" change_cell('signal_server_type')">
					</el-input>
					<!-- <el-select v-model="account_data['signal_server_type']" size="small" style="width: 300px;"  allow-create='True' clearable collapse-tags
						placeholder="请选择" @change=" change_cell('signal_server_type')">
						<el-option v-for="item in signal_server_options" :key="item.value" :label="item.label"
							:value="item.value">
						</el-option>
					</el-select> -->
				</div>
				
			
				
				
				
				<div class="input_item" style="background-color: #CCFFCC;">
					<span class="input_item_title">qry_log_path：</span>
					<el-input v-model="account_data['qry_log_path']" size="small" style="width: 500px;" type="textarea"
						:autosize="{ minRows: 1, maxRows: 6 }" @change=" change_cell('qry_log_path')">
					</el-input>

				</div>
				<div class="input_item" style="background-color: #CCFFCC;">
					<span class="input_item_title">qry_start_cmd：</span>
					<el-input v-model="account_data['qry_start_cmd']" size="small" style="width: 500px;" type="textarea"
						:autosize="{ minRows: 1, maxRows: 6 }" @change=" change_cell('qry_start_cmd')">
					</el-input>

				</div>
				<div class="input_item" style="background-color: #CCFFCC;">
					<span class="input_item_title">ts_log_path：</span>
					<el-input v-model="account_data['ts_log_path']" size="small" style="width: 500px;" type="textarea"
						:autosize="{ minRows: 1, maxRows: 6 }" @change=" change_cell('ts_log_path')">
					</el-input>

				</div>
				<div class="input_item" style="background-color: #CCFFCC;">
					<span class="input_item_title">secmaster_path：</span>
					<el-input v-model="account_data['secmaster_path']" size="small" style="width: 500px;" type="textarea"
						:autosize="{ minRows: 1, maxRows: 6 }" @change=" change_cell('secmaster_path')">
					</el-input>
				</div>
				<div class="input_item" style="background-color: #CCFFCC;">
					<span class="input_item_title">adminterm_path：</span>
					<el-input v-model="account_data['adminterm_path']" size="small" style="width: 500px;" type="textarea"
						:autosize="{ minRows: 1, maxRows: 6 }" @change=" change_cell('adminterm_path')">
					</el-input>
				</div>
				<div class="input_item" style="background-color: #CCFFCC;">
					<span class="input_item_title">ts_start_script：</span>
					<el-input v-model="account_data['ts_start_script']" size="small" style="width: 500px;" type="textarea"
						:autosize="{ minRows: 1, maxRows: 6 }" @change=" change_cell('ts_start_script')">
					</el-input>
				</div>
				<div class="input_item" style="background-color: #CCFFCC;">
					<span class="input_item_title">ts_start_cmd：</span>
					<el-input v-model="account_data['ts_start_cmd']" size="small" style="width: 500px;" type="textarea"
						:autosize="{ minRows: 1, maxRows: 6 }" @change=" change_cell('ts_start_cmd')">
					</el-input>
				</div>
				<div class="input_item" style="background-color: #CCFFCC;">
					<span class="input_item_title">hs_start_script：</span>
					<el-input v-model="account_data['hs_start_script']" size="small" style="width: 500px;" type="textarea"
						:autosize="{ minRows: 1, maxRows: 6 }" @change=" change_cell('hs_start_script')">
					</el-input>
				</div>
				<div class="input_item" style="background-color: #CCFFCC;">
					<span class="input_item_title">hs_start_cmd：</span>
					<el-input v-model="account_data['hs_start_cmd']" size="small" style="width: 500px;" type="textarea"
						:autosize="{ minRows: 1, maxRows: 6 }" @change=" change_cell('hs_start_cmd')">
					</el-input>
				</div>

				<div class="input_item" style="background-color: #CCFFCC;">
					<span class="input_item_title">qryLogLastWord：</span>
					<el-input v-model="account_data['qryLogLastWord']" size="small" style="width: 500px;"
						type="textarea" :autosize="{ minRows: 1, maxRows: 6 }" @change=" change_cell('qryLogLastWord')">
					</el-input>
				</div>
				<div class="input_item" style="background-color: #CCFFCC;">
					<span class="input_item_title">upAtSig：</span>
					<el-input v-model="account_data['upAtSig']" size="small" style="width: 500px;" type="textarea"
						:autosize="{ minRows: 1, maxRows: 6 }" @change=" change_cell('upAtSig')">
					</el-input>
				</div>

				<div class="input_item" style="background-color: #CCFFCC;">
					<span class="input_item_title">upT0Sig：</span>
					<el-input v-model="account_data['upT0Sig']" size="small" style="width: 500px;" type="textarea"
						:autosize="{ minRows: 1, maxRows: 6 }" @change=" change_cell('upT0Sig')">
					</el-input>
				</div>
				<div class="input_item" style="background-color: #CCFFCC;">
					<span class="input_item_title">upAtCfg：
					<span style="color: red;">(股票必填)</span>
					</span>
					<el-input v-model="account_data['upAtCfg']" size="small" style="width: 500px;" type="textarea"
						:autosize="{ minRows: 1, maxRows: 6 }" @change=" change_cell('upAtCfg')">
					</el-input>
				</div>
				
				
				<div class="input_item" style="background-color: #CCFFCC;">
					<span class="input_item_title">mix_ratio_path：</span>
					<el-input v-model="account_data['mix_ratio_path']" size="small" style="width: 500px;"
						@change=" change_cell('mix_ratio_path')">
					</el-input>
				</div>

				<div class="input_item" style="background-color: #CCFFCC;">
					<span class="input_item_title">peer_addr：</span>
					<el-input v-model="account_data['peer_addr']" size="small" style="width: 500px;"
						@change=" change_cell('peer_addr')">
					</el-input>
				</div>



				<!-- <div class="input_item">
					<span class="input_item_title">cpu_tree：</span>
					<el-input v-model="account_data['cpu_tree']" size="small" style="width: 500px;" @change=" change_cell('cpu_tree')">
					</el-input>
				</div> -->

				<div class="input_item" style="background-color: #CCFFCC;">
					<span class="input_item_title">server40_ids_flag：</span>
					<el-select v-model="account_data['server40_ids_flag']" size="small" style="width: 300px;"
						collapse-tags placeholder="请选择" @change=" change_cell('server40_ids_flag')">
						<el-option v-for="item in use_options" :key="item.value" :label="item.label"
							:value="item.value">
						</el-option>
					</el-select>
				</div>
				<div class="input_item" style="background-color: #CCFFCC;">
					<span class="input_item_title">server40_aTSig_flag：</span>
					<el-select v-model="account_data['server40_aTSig_flag']" size="small" style="width: 300px;"
						collapse-tags placeholder="请选择" @change=" change_cell('server40_aTSig_flag')">
						<el-option v-for="item in use_options" :key="item.value" :label="item.label"
							:value="item.value">
						</el-option>
					</el-select>
				</div>
				<div class="input_item" style="background-color: #CCFFCC;">
					<span class="input_item_title">server40_t0Sig_flag：</span>
					<el-select v-model="account_data['server40_t0Sig_flag']" size="small" style="width: 300px;"
						collapse-tags placeholder="请选择" @change=" change_cell('server40_t0Sig_flag')">
						<el-option v-for="item in use_options" :key="item.value" :label="item.label"
							:value="item.value">
						</el-option>
					</el-select>
				</div>
				<div class="input_item" style="background-color: #CCFFCC;">
					<span class="input_item_title">server40_aTCfg_flag：</span>
					<el-select v-model="account_data['server40_aTCfg_flag']" size="small" style="width: 300px;"
						collapse-tags placeholder="请选择" @change=" change_cell('server40_aTCfg_flag')">
						<el-option v-for="item in use_options" :key="item.value" :label="item.label"
							:value="item.value">
						</el-option>
					</el-select>
				</div>
				<div class="input_item" style="background-color: #CCFFCC;">
					<span class="input_item_title">serverAli_ids_flag：</span>
					<el-select v-model="account_data['serverAli_ids_flag']" size="small" style="width: 300px;"
						collapse-tags placeholder="请选择" @change=" change_cell('serverAli_ids_flag')">
						<el-option v-for="item in use_options" :key="item.value" :label="item.label"
							:value="item.value">
						</el-option>
					</el-select>
				</div>
				<div class="input_item" style="background-color: #CCFFCC;">
					<span class="input_item_title">serverAli_aTSig_flag：</span>
					<el-select v-model="account_data['serverAli_aTSig_flag']" size="small" style="width: 300px;"
						collapse-tags placeholder="请选择" @change=" change_cell('serverAli_aTSig_flag')">
						<el-option v-for="item in use_options" :key="item.value" :label="item.label"
							:value="item.value">
						</el-option>
					</el-select>
				</div>
				<div class="input_item" style="background-color: #CCFFCC;">
					<span class="input_item_title">serverAli_t0Sig_flag：</span>
					<el-select v-model="account_data['serverAli_t0Sig_flag']" size="small" style="width: 300px;"
						collapse-tags placeholder="请选择" @change=" change_cell('serverAli_t0Sig_flag')">
						<el-option v-for="item in use_options" :key="item.value" :label="item.label"
							:value="item.value">
						</el-option>
					</el-select>
				</div>
				<div class="input_item" style="background-color: #CCFFCC;">
					<span class="input_item_title">serverAli_aTCfg_flag：</span>
					<el-select v-model="account_data['serverAli_aTCfg_flag']" size="small" style="width: 300px;"
						collapse-tags placeholder="请选择" @change=" change_cell('serverAli_aTCfg_flag')">
						<el-option v-for="item in use_options" :key="item.value" :label="item.label"
							:value="item.value">
						</el-option>
					</el-select>
				</div>
				<div class="input_item" style="background-color: #CCFFCC;">
					<span class="input_item_title">serverCheck_qry_ds：</span>
					<el-select v-model="account_data['serverCheck_qry_ds']" size="small" style="width: 300px;"
						collapse-tags placeholder="请选择" @change=" change_cell('serverCheck_qry_ds')">
						<el-option v-for="item in use_options" :key="item.value" :label="item.label"
							:value="item.value">
						</el-option>
					</el-select>
				</div>
				<div class="input_item" style="background-color: #CCFFCC;">
					<span class="input_item_title">serverCheck_openReb：</span>
					<el-select v-model="account_data['serverCheck_openReb']" size="small" style="width: 300px;"
						collapse-tags placeholder="请选择" @change=" change_cell('serverCheck_openReb')">
						<el-option v-for="item in use_options" :key="item.value" :label="item.label"
							:value="item.value">
						</el-option>
					</el-select>
				</div>
				<div class="input_item" style="background-color: #CCFFCC;">
					<span class="input_item_title">proxyCfg：</span>
					<el-select v-model="account_data['proxyCfg']" size="small" style="width: 300px;" collapse-tags
						placeholder="请选择" @change=" change_cell('proxyCfg')">
						<el-option v-for="item in use_options" :key="item.value" :label="item.label"
							:value="item.value">
						</el-option>
					</el-select>
				</div>


				<div style="width: 100%;margin: 30px; background-color: #CCFFCC;">

				</div>


			</div>


			<div
				:style="'display:flex;flex-flow:column; margin:0 40px 100px 40px; background-color: white; width: 45%; font-size: 14px;  '">

				<div class="input_item" style="background-color: #E0FFFF;">
					<span class="input_item_title">product_name：</span>
					<el-select style="width: 300px;" v-model="compareaccount_data['product_name']" size="small" clearable filterable placeholder="请选择" disabled >
						<el-option v-for="item in product_options" :key="item.label" :label="item.label"
							:value="item.value">
						</el-option>
					</el-select>
					
				</div>
				<div class="input_item" style="background-color: #E0FFFF;">
					<span class="input_item_title">prod_code：</span>
					<el-select style="width: 300px;" v-model="compareaccount_data['prod_code']" size="small" clearable filterable placeholder="请选择" disabled >
						<el-option v-for="item in product_code_options" :key="item.label" :label="item.label"
							:value="item.value">
						</el-option>
					</el-select>
					
				</div>
				
				<div class="input_item" style="background-color: #E0FFFF;">
					<span class="input_item_title">account_brokerage：</span>
					<el-input v-model="compareaccount_data['account_brokerage']" size="small" style="width: 300px;"
						readonly>
					</el-input>
				</div>
				<div class="input_item" style="background-color: #E0FFFF;">
					<span class="input_item_title">account_brokerage_total：</span>
					<el-input v-model="compareaccount_data['account_brokerage_total']" size="small"
						style="width: 300px;" readonly>
					</el-input>
				</div>
				<div class="input_item" style="background-color: #E0FFFF;">
					<span class="input_item_title">account_num：</span>
					<el-input v-model="compareaccount_data['account_num']" size="small" style="width: 300px;" readonly>
					</el-input>
				</div>
				
				<div class="input_item" style="background-color: #E0FFFF;">
					<span class="input_item_title">pb1：</span>
					<el-input v-model="compareaccount_data['pb1']" size="small" style="width: 300px;" readonly>
					</el-input>
				</div>
				<div class="input_item" style="background-color: #E0FFFF;">
					<span class="input_item_title">pb2：</span>
					<el-input v-model="compareaccount_data['pb2']" size="small" style="width: 300px;" readonly>
					</el-input>
				</div>
				<div class="input_item" style="background-color: #E0FFFF;">
					<span class="input_item_title">login_pwd：</span>
					<el-input v-model="compareaccount_data['login_pwd']" size="small" style="width: 300px;" readonly>
					</el-input>
				</div>
				<div class="input_item" style="background-color: #E0FFFF;">
					<span class="input_item_title">transact_pwd：</span>
					<el-input v-model="compareaccount_data['transact_pwd']" size="small" style="width: 300px;" readonly>
					</el-input>
				</div>
				<div class="input_item" style="background-color: #E0FFFF;">
					<span class="input_item_title">division_name：</span>
					<el-input v-model="compareaccount_data['division_name']" size="small" style="width: 300px;"
						readonly>
					</el-input>
				</div>
				<div class="input_item" style="background-color: #E0FFFF;">
					<span class="input_item_title">netvalue_site：</span>
					<el-input v-model="compareaccount_data['netvalue_site']" size="small" style="width: 300px;"
						readonly>
					</el-input>
				</div>
				
				
				<div class="input_item" style="background-color: #E0FFFF;">
					<span class="input_item_title">上海毛佣金：</span>
					<el-input v-model="compareaccount_data['feerate_maoyongjin_sh']"  size="small" style="width: 300px;" readonly>
					</el-input>
				
				</div>
				<div class="input_item" style="background-color: #E0FFFF;">
					<span class="input_item_title">深圳毛佣金：</span>
					<el-input v-model="compareaccount_data['feerate_maoyongjin_sz']"  size="small" style="width: 300px;" readonly>
					</el-input>
				
				</div>
				<div class="input_item" style="background-color: #E0FFFF;">
					<span class="input_item_title">上海过户费：</span>
					<el-input v-model="compareaccount_data['feerate_guohufei_sh']"  size="small" style="width: 300px;" readonly>
					</el-input>
				
				</div>
				<div class="input_item" style="background-color: #E0FFFF;">
					<span class="input_item_title">深圳过户费：</span>
					<el-input v-model="compareaccount_data['feerate_guohufei_sz']"  size="small" style="width: 300px;" readonly>
					</el-input>
				
				</div>
				<div class="input_item" style="background-color: #E0FFFF;">
					<span class="input_item_title">最低毛佣金：</span>
					<el-input v-model="compareaccount_data['feerate_maoyongjin_min']"  size="small" style="width: 300px;" readonly>
					</el-input>
				
				</div>
				<div class="input_item" style="background-color: #E0FFFF;">
					<span class="input_item_title">流量费用：</span>
					<el-input v-model="compareaccount_data['feerate_liuliangfee']"  size="small" style="width: 300px;" readonly>
					</el-input>
				
				</div>
				<div class="input_item" style="background-color: #E0FFFF;">
					<span class="input_item_title">预扣费用：</span>
					<el-input v-model="compareaccount_data['feerate_yukou']"  size="small" style="width: 300px;" readonly>
					</el-input>
				
				</div>
				
				<div class="input_item" style="background-color: #FFFACD;">
					<span class="input_item_title">期货自动操作标志：</span>
					<el-select v-model="compareaccount_data['auto_flag']" size="small" style="width: 300px;"
						collapse-tags placeholder="请选择" disabled>
						<el-option v-for="item in use_options" :key="item.value" :label="item.label"
							:value="item.value">
						</el-option>
					</el-select>
				</div>

				<div class="input_item" style="background-color: #FFFACD;">
					<span class="input_item_title">交易范围：</span>
					<el-select v-model="compareaccount_data['symbol_range']" size="small" style="width: 300px;"
						collapse-tags placeholder="请选择" disabled>
						<el-option v-for="item in symbol_range_options" :key="item.value" :label="item.label"
							:value="item.value">
						</el-option>
					</el-select>
				</div>
				<div class="input_item" style="background-color: #FFFACD;">
					<span class="input_item_title">交易模式：</span>
					<el-select v-model="compareaccount_data['trade_mode']" size="small" style="width: 300px;"
						collapse-tags placeholder="请选择" disabled>
						<el-option v-for="item in trade_mode_options" :key="item.value" :label="item.label"
							:value="item.value">
						</el-option>
					</el-select>
				</div>
				<div class="input_item" style="background-color: #FFFACD;">
					<span class="input_item_title">signal版本：</span>
					<el-select v-model="account_data['signal_type']" size="small" style="width: 300px;" collapse-tags
						placeholder="请选择" disabled>
						<el-option v-for="item in signal_options" :key="item.value" :label="item.label"
							:value="item.value">
						</el-option>
					</el-select>
				</div>

				<div class="input_item" style="background-color: #FFFAAA;">
					<span class="input_item_title">special_tag：</span>
					<el-input v-model="compareaccount_data['special_tag']"  size="small" style="width: 300px;" readonly>
					</el-input>

				</div>
				
			

				<div class="input_item" style="background-color: #CCFFCC;">
					<span class="input_item_title">program_code：</span>
					<el-input v-model="compareaccount_data['program_code']"  size="small" style="width: 300px;" readonly>
					</el-input>

				</div>
				<div class="input_item" style="background-color: #CCFFCC;">
					<span class="input_item_title">account：</span>
					<el-input v-model="compareaccount_data['account']"  size="small" style="width: 300px;" readonly>
					</el-input>

				</div>
				<div class="input_item" style="background-color: #CCFFCC;">
					<span class="input_item_title">server：</span>
					<el-select v-model="compareaccount_data['server']" disabled size="small" style="width: 300px;" collapse-tags
						placeholder="请选择">
						<el-option v-for="item in server_list" :key="item.value" :label="item.label"
							:value="item.value">
						</el-option>
					</el-select>

				</div>
				<div class="input_item" style="background-color: #CCFFCC;">
					<span class="input_item_title">account_type：</span>
					<el-select v-model="compareaccount_data['account_type']" disabled size="small" style="width: 300px; "
						collapse-tags placeholder="请选择">
						<el-option v-for="item in account_type_options" :key="item.value" :label="item.label"
							:value="item.value">
						</el-option>
					</el-select>
				</div>
				<div class="input_item" style="background-color: #CCFFCC;">
					<span class="input_item_title">account_zwname：</span>
					<el-input v-model="compareaccount_data['account_zwname']"  size="small" style="width: 300px;" readonly>
					</el-input>

				</div>
				<div class="input_item" style="background-color: #CCFFCC;">
					<span class="input_item_title">git_prod_name：
					
					</span>
					<el-input v-model="compareaccount_data['git_prod_name']"  size="small" style="width: 300px;" readonly>
					</el-input>

				</div>
				<div class="input_item" style="background-color: #CCFFCC;">
					<span class="input_item_title">use_flag：</span>
					<el-select v-model="compareaccount_data['use_flag']" disabled size="small" style="width: 300px;"
						collapse-tags placeholder="请选择">
						<el-option v-for="item in use_options" :key="item.value" :label="item.label"
							:value="item.value">
						</el-option>
					</el-select>
				</div>
				<div class="input_item" style="background-color: #CCFFCC;">
					<span class="input_item_title">ipo_flag：</span>
					<el-select v-model="compareaccount_data['ipo_flag']" disabled size="small" style="width: 300px;" collapse-tags
						placeholder="请选择">
						<el-option v-for="item in use_options" :key="item.value" :label="item.label"
							:value="item.value">
						</el-option>
					</el-select>
				</div>

				<div class="input_item" style="background-color: #CCFFCC;">
					<span class="input_item_title">product_strategy：</span>
					<el-select v-model="compareaccount_data['product_strategy']" disabled size="small" style="width: 300px;"
						collapse-tags placeholder="请选择">
						<el-option v-for="item in strategy_options" :key="item.value" :label="item.label"
							:value="item.value">
						</el-option>
					</el-select>
				</div>

				<div class="input_item" style="background-color: #CCFFCC;">
					<span class="input_item_title">ts_admin_port：</span>
					<el-input v-model="compareaccount_data['ts_admin_port']" size="small" style="width: 300px;" readonly>
					</el-input>

				</div>
				<div class="input_item" style="background-color: #CCFFCC;">
					<span class="input_item_title">cpu_ts：</span>
					<el-input v-model="compareaccount_data['cpu_ts']" size="small" style="width: 300px;" readonly>
					</el-input>
				
				</div>
				<div class="input_item" style="background-color: #CCFFCC;">
					<span class="input_item_title">signal_target_path：</span>
					<el-input v-model="compareaccount_data['signal_target_path']" size="small" style="width: 300px;" readonly>
					</el-input>
				
				</div>
				
				<div class="input_item" style="background-color: #CCFFCC;">
					<span class="input_item_title">check_directory：</span>
					<el-input v-model="compareaccount_data['check_directory']" size="small" style="width: 300px;" readonly>
					</el-input>
				
				</div>
				
				
				<div class="input_item" style="background-color: #CCFFCC;">
					<span class="input_item_title">qs_channel_name：</span>
					<el-input v-model="compareaccount_data['qs_channel_name']" size="small" style="width: 300px;" readonly>
					</el-input>
				
				</div>
				



				<div class="input_item" style="background-color: #CCFFCC;">
					<span class="input_item_title">eod_pos_name：</span>
					<el-input v-model="compareaccount_data['eod_pos_name']" size="small" style="width: 300px;" readonly>
					</el-input>

				</div>
				<div class="input_item" style="background-color: #CCFFCC;">
					<span class="input_item_title">sod_pos_name：</span>
					<el-input v-model="compareaccount_data['sod_pos_name']" size="small" style="width: 300px;" readonly>
					</el-input>

				</div>
				<div class="input_item" style="background-color: #CCFFCC;">
					<span class="input_item_title">json_key：</span>
					<el-input v-model="compareaccount_data['json_key']" size="small" style="width: 300px;" readonly>
					</el-input>
				
				</div>
				
				<div class="input_item" style="background-color: #CCFFCC;">
					<span class="input_item_title">transfer_proxy：</span>
					<el-select v-model="compareaccount_data['transfer_proxy']" size="small" style="width: 300px;"
						collapse-tags placeholder="请选择" disabled>
						<el-option v-for="item in proxy_options" :key="item.value" :label="item.label"
							:value="item.value">
						</el-option>
					</el-select>
				</div>

				<div class="input_item" style="background-color: #CCFFCC;">
					<span class="input_item_title">signal_server_type：</span>
					<el-input v-model="compareaccount_data['signal_server_type']" size="small" style="width: 300px;" readonly>
					</el-input>
				</div>
				

				<div class="input_item" style="background-color: #CCFFCC;">
					<span class="input_item_title">qry_log_path：</span>
					<el-input v-model="compareaccount_data['qry_log_path']" size="small" style="width: 500px;" readonly
						type="textarea" :autosize="{ minRows: 1, maxRows: 6 }">
					</el-input>

				</div>
				<div class="input_item" style="background-color: #CCFFCC;">
					<span class="input_item_title">qry_start_cmd：</span>
					<el-input v-model="compareaccount_data['qry_start_cmd']" size="small" style="width: 500px;" readonly
						type="textarea" :autosize="{ minRows: 1, maxRows: 6 }">
					</el-input>

				</div>
				<div class="input_item" style="background-color: #CCFFCC;">
					<span class="input_item_title">ts_log_path：</span>
					<el-input v-model="compareaccount_data['ts_log_path']" size="small" style="width: 500px;" readonly
						type="textarea" :autosize="{ minRows: 1, maxRows: 6 }">
					</el-input>

				</div>


				<div class="input_item" style="background-color: #CCFFCC;">
					<span class="input_item_title">secmaster_path：</span>
					<el-input v-model="compareaccount_data['secmaster_path']" size="small" style="width: 500px;" type="textarea"
						:autosize="{ minRows: 1, maxRows: 6 }" readonly>
					</el-input>
				</div>
				<div class="input_item" style="background-color: #CCFFCC;">
					<span class="input_item_title">adminterm_path：</span>
					<el-input v-model="compareaccount_data['adminterm_path']" size="small" style="width: 500px;" type="textarea"
						:autosize="{ minRows: 1, maxRows: 6 }" readonly>
					</el-input>
				</div>
				<div class="input_item" style="background-color: #CCFFCC;">
					<span class="input_item_title">ts_start_script：</span>
					<el-input v-model="compareaccount_data['ts_start_script']" size="small" style="width: 500px;" type="textarea"
						:autosize="{ minRows: 1, maxRows: 6 }" readonly>
					</el-input>
				</div>
				<div class="input_item" style="background-color: #CCFFCC;">
					<span class="input_item_title">ts_start_cmd：</span>
					<el-input v-model="compareaccount_data['ts_start_cmd']" size="small" style="width: 500px;" type="textarea"
						:autosize="{ minRows: 1, maxRows: 6 }" readonly>
					</el-input>
				</div>
				<div class="input_item" style="background-color: #CCFFCC;">
					<span class="input_item_title">hs_start_script：</span>
					<el-input v-model="compareaccount_data['hs_start_script']" size="small" style="width: 500px;" type="textarea"
						:autosize="{ minRows: 1, maxRows: 6 }" readonly>
					</el-input>
				</div>
				<div class="input_item" style="background-color: #CCFFCC;">
					<span class="input_item_title">hs_start_cmd：</span>
					<el-input v-model="compareaccount_data['hs_start_cmd']" size="small" style="width: 500px;" type="textarea"
						:autosize="{ minRows: 1, maxRows: 6 }" readonly>
					</el-input>
				</div>



				<div class="input_item" style="background-color: #CCFFCC;">
					<span class="input_item_title">qryLogLastWord：</span>
					<el-input v-model="compareaccount_data['qryLogLastWord']" size="small" style="width: 500px;" readonly
						type="textarea" :autosize="{ minRows: 1, maxRows: 6 }">
					</el-input>
				</div>
				<div class="input_item" style="background-color: #CCFFCC;">
					<span class="input_item_title">upAtSig：</span>
					<el-input v-model="compareaccount_data['upAtSig']" size="small" style="width: 500px;" readonly
						type="textarea" :autosize="{ minRows: 1, maxRows: 6 }">
					</el-input>
				</div>

				<div class="input_item" style="background-color: #CCFFCC;">
					<span class="input_item_title">upT0Sig：</span>
					<el-input v-model="compareaccount_data['upT0Sig']" size="small" style="width: 500px;" readonly
						type="textarea" :autosize="{ minRows: 1, maxRows: 6 }">
					</el-input>
				</div>
				<div class="input_item" style="background-color: #CCFFCC;">
					<span class="input_item_title">upAtCfg：</span>
					<el-input v-model="compareaccount_data['upAtCfg']" size="small" style="width: 500px;" readonly
						type="textarea" :autosize="{ minRows: 1, maxRows: 6 }">
					</el-input>
				</div>
				<div class="input_item" style="background-color: #CCFFCC;">
					<span class="input_item_title">mix_ratio_path：</span>
					<el-input v-model="compareaccount_data['mix_ratio_path']" size="small" style="width: 500px;" readonly>
					</el-input>
				</div>

				<div class="input_item" style="background-color: #CCFFCC;">
					<span class="input_item_title">peer_addr：</span>
					<el-input v-model="compareaccount_data['peer_addr']" size="small" style="width: 500px;" readonly>
					</el-input>
				</div>


				<div class="input_item" style="background-color: #CCFFCC;">
					<span class="input_item_title">server40_ids_flag：</span>
					<el-select v-model="compareaccount_data['server40_ids_flag']" disabled size="small" style="width: 300px;"
						collapse-tags placeholder="请选择" >
						<el-option v-for="item in use_options" :key="item.value" :label="item.label"
							:value="item.value">
						</el-option>
					</el-select>
				</div>
				<div class="input_item" style="background-color: #CCFFCC;">
					<span class="input_item_title">server40_aTSig_flag：</span>
					<el-select v-model="compareaccount_data['server40_aTSig_flag']" disabled size="small" style="width: 300px;"
						collapse-tags placeholder="请选择" >
						<el-option v-for="item in use_options" :key="item.value" :label="item.label"
							:value="item.value">
						</el-option>
					</el-select>
				</div>
				<div class="input_item" style="background-color: #CCFFCC;">
					<span class="input_item_title">server40_t0Sig_flag：</span>
					<el-select v-model="compareaccount_data['server40_t0Sig_flag']" disabled size="small" style="width: 300px;"
						collapse-tags placeholder="请选择" >
						<el-option v-for="item in use_options" :key="item.value" :label="item.label"
							:value="item.value">
						</el-option>
					</el-select>
				</div>
				<div class="input_item" style="background-color: #CCFFCC;">
					<span class="input_item_title">server40_aTCfg_flag：</span>
					<el-select v-model="compareaccount_data['server40_aTCfg_flag']" disabled size="small" style="width: 300px;"
						collapse-tags placeholder="请选择">
						<el-option v-for="item in use_options" :key="item.value" :label="item.label"
							:value="item.value">
						</el-option>
					</el-select>
				</div>
				<div class="input_item" style="background-color: #CCFFCC;">
					<span class="input_item_title">serverAli_ids_flag：</span>
					<el-select v-model="compareaccount_data['serverAli_ids_flag']" disabled size="small" style="width: 300px;"
						collapse-tags placeholder="请选择">
						<el-option v-for="item in use_options" :key="item.value" :label="item.label"
							:value="item.value">
						</el-option>
					</el-select>
				</div>
				<div class="input_item" style="background-color: #CCFFCC;">
					<span class="input_item_title">serverAli_aTSig_flag：</span>
					<el-select v-model="compareaccount_data['serverAli_aTSig_flag']" disabled size="small" style="width: 300px;"
						collapse-tags placeholder="请选择">
						<el-option v-for="item in use_options" :key="item.value" :label="item.label"
							:value="item.value">
						</el-option>
					</el-select>
				</div>
				<div class="input_item" style="background-color: #CCFFCC;">
					<span class="input_item_title">serverAli_t0Sig_flag：</span>
					<el-select v-model="compareaccount_data['serverAli_t0Sig_flag']" disabled size="small" style="width: 300px;"
						collapse-tags placeholder="请选择">
						<el-option v-for="item in use_options" :key="item.value" :label="item.label"
							:value="item.value">
						</el-option>
					</el-select>
				</div>
				<div class="input_item" style="background-color: #CCFFCC;">
					<span class="input_item_title">serverAli_aTCfg_flag：</span>
					<el-select v-model="compareaccount_data['serverAli_aTCfg_flag']" disabled size="small" style="width: 300px;"
						collapse-tags placeholder="请选择" >
						<el-option v-for="item in use_options" :key="item.value" :label="item.label"
							:value="item.value">
						</el-option>
					</el-select>
				</div>
				<div class="input_item" style="background-color: #CCFFCC;">
					<span class="input_item_title">serverCheck_qry_ds：</span>
					<el-select v-model="compareaccount_data['serverCheck_qry_ds']" disabled size="small" style="width: 300px;"
						collapse-tags placeholder="请选择">
						<el-option v-for="item in use_options" :key="item.value" :label="item.label"
							:value="item.value">
						</el-option>
					</el-select>
				</div>
				<div class="input_item" style="background-color: #CCFFCC;">
					<span class="input_item_title">serverCheck_openReb：</span>
					<el-select v-model="compareaccount_data['serverCheck_openReb']" disabled size="small" style="width: 300px;"
						collapse-tags placeholder="请选择">
						<el-option v-for="item in use_options" :key="item.value" :label="item.label"
							:value="item.value">
						</el-option>
					</el-select>
				</div>
				<div class="input_item" style="background-color: #CCFFCC;">
					<span class="input_item_title">proxyCfg：</span>
					<el-select v-model="compareaccount_data['proxyCfg']" disabled size="small" style="width: 300px;"
						collapse-tags placeholder="请选择" >
						<el-option v-for="item in use_options" :key="item.value" :label="item.label"
							:value="item.value">
						</el-option>
					</el-select>
				</div>


				<div style="width: 100%;margin: 30px; background-color: #CCFFCC;">

					<!-- <el-button style="margin: 30px; text-align: right;" size="mini" type="success" @click="refleash()">修改</el-button> -->
				</div>


			</div>


		</div>
		<el-dialog :visible.sync="visible">
			<div style="display: flex;flex-flow: column; justify-content:center; height: 400px;margin-top: 10px;">
				<div style="display: flex; justify-content:center;">
					<span style="color: blue;font-size: 24px; font-family: KaiTi, Helvetica, sans-serif;">新增账户</span>
				</div>
				<div style="display: flex;align-items: center;padding-top: 23px; justify-content:center;">
					<div style="width: 300px; display: flex; flex-flow: column;">
						<span style="font-size: 18px;">program_code：</span>
						<span style="font-size: 13px;color: red;">(系统唯一账户代码 期货填账户号)</span>
						
					</div>
					
					
					<el-input v-model="new_account['program_code']" size="small" style="width: 300px;"
						placeholder="请输入新账户名">
					</el-input>

				</div>
				<div style="display: flex;align-items: center;padding-top: 23px; justify-content:center;">
					
					<div style="width: 300px; display: flex; flex-flow: column;">
						<span style="font-size: 18px;">account：</span>
						<span style="font-size: 13px;color: red;">(系统唯一账户代码代码简称, 期货填账户号)</span>
						
					</div>
					<el-input v-model="new_account['account']" size="small" style="width: 300px;" placeholder="请输入新账户名">
					</el-input>

				</div>
				<div style="display: flex;align-items: center;center;padding-top: 20px; justify-content:center;">
					
					
					<div style="width: 300px; display: flex; flex-flow: column;">
						<span style="font-size: 18px;">account_type：</span>
						<span style="font-size: 13px;color: red;">(账户类型，可以先不填)</span>
						
					</div>
					
					
					<el-select v-model="new_account['account_type']" size="small" style="width: 300px;" collapse-tags
						placeholder="请选择">
						<el-option v-for="item in account_type_options" :key="item.value" :label="item.label"
							:value="item.value">
						</el-option>
					</el-select>
				</div>
				<div style="display: flex;align-items: center;padding-top: 20px; justify-content:center;">
					<div style="width: 300px; display: flex; flex-flow: column;">
						<span style="font-size: 18px;">account_zwname：</span>
						<span style="font-size: 13px;color: red;">(账户中文，自定义)</span>
						
					</div>
					
					<el-input v-model="new_account['account_zwname']" size="small" style="width: 300px;"
						placeholder="请输入新账户中文名"></el-input>
				</div>
				<div style="display: flex;align-items: center;padding-top: 20px; justify-content:center;">
					
					<div style="width: 300px; display: flex; flex-flow: column;">
						<span style="font-size: 18px;">server：</span>
						<span style="font-size: 13px;color: red;">(服务器，可不填)</span>
						
					</div>
					<el-select v-model="new_account['server']" size="small" style="width: 300px;" collapse-tags
						placeholder="请选择">
						<el-option v-for="item in server_list" :key="item.value" :label="item.label"
							:value="item.value">
						</el-option>
					</el-select>
				</div>

				<!-- <div style="display: flex;align-items: center;center;padding-top: 20px; justify-content:center;">
					<span style="width: 200px;">template_program_code：</span>
					<el-select v-model="new_account['template_program_code']" clearable filterable size="small" style="width: 300px;" collapse-tags
						placeholder="请选择">
						<el-option v-for="item in account_options" :key="item.value" :label="item.label"
							:value="item.value">
						</el-option>
					</el-select>
				</div> -->

				<div style="display: flex;align-items: center;padding-top: 20px;  justify-content:center">

					<el-button style=" height: 33px;" size="small" type="success" @click="addnew_account()">新增确认
					</el-button>
				</div>


			</div>


		</el-dialog>



	</div>
</template>





<script>
	import headTop from '@/components/headTop'
	export default {
		data() {
			return {
				visible: false,
				accountchoice: '',
				accountcompare: '',
				account_options: [],
				compareaccount_data: {},
				account_data: {},
				old_account_data: {},
				fixer: 'none',

				two_options: [{
						value: 'true',
						label: 'true'
					},
					{
						value: 'false',
						label: 'false'
					},


				],
				proxy_options: [{
						value: 'aliyun',
						label: 'aliyun'
					},
					{
						value: 'humWindows',
						label: 'humWindows'
					},
					{
						value: 'zhonxin',
						label: 'zhonxin'
					},

				],

				account_type_options: [{
						value: 'equities',
						label: 'equities'
					},
					{
						value: 'index_future',
						label: 'index_future'
					},
					{
						value: 'future_cffex',
						label: 'future_cffex'
					},
					{
						value: 'future_commodity',
						label: 'future_commodity'
					},
					{
						value: 'bond',
						label: 'bond'
					},
					{
						value: 'test',
						label: 'test'
					},
					{
						value: 'fileorder',
						label: 'fileorder'
					},
					{
						value: 'sig_server',
						label: 'sig_server'
					},
					{
						value: 'web3',
						label: 'web3'
					},
				],
				new_account: {
					"account": "",
					"account_type": "equities",
					"account_zwname": "",
					"server": "",
					"program_code": "",
					"template_program_code": "",
				},
				signal_options: [{
						value: 'V1.0',
						label: 'V1.0'
					},
					{
						value: 'V2.0',
						label: 'V2.0'
					},

				],
				check_options:[{
						value: 'yes',
						label: 'yes'
					},
					{
						value: 'no',
						label: 'no'
					},

				],
				
				
				signal_server_options: [{
						value: '123,45',
						label: '123,45'
					},
					{
						value: '123,4,5',
						label: '123,4,5'
					},

				],
				use_options: [{
						value: 'yes',
						label: 'yes'
					},
					{
						value: 'no',
						label: 'no'
					},
				],
				symbol_range_options: [{
						value: '成分股',
						label: '成分股'
					},
					{
						value: 'no_risk',
						label: 'no_risk'
					},
					{
						value: '微盘股',
						label: '微盘股'
					},
					{
						value: '默认',
						label: '默认'
					},
					{
						value: '日内换仓',
						label: '日内换仓'
					},
					{
						value: '日内换仓twap',
						label: '日内换仓twap'
					},
					{
						value: '日内换仓成分股内',
						label: '日内换仓成分股内'
					},
				],
				trade_mode_options: [{
						value: 'taking',
						label: 'taking'
					},
					{
						value: 'making',
						label: 'making'
					},
					{
						value: '五档即撤',
						label: '五档即撤'
					},
				],
				strategy_options: [
					{
						value: 'mix_alphaT',
						label: 'mix_alphaT'
					},
					{
						value: 'sig_alphaT',
						label: 'sig_alphaT'
					},
					{
						value: 'sig_t0',
						label: 'sig_t0'
					},
					{
						value: 'sig_twap',
						label: 'sig_twap'
					},
					{
						value: 'sig_bond',
						label: 'sig_bond'
					},
					{
						value: '300alphaT',
						label: '300alphaT'
					},
					{
						value: '500alphaT',
						label: '500alphaT'
					},
					{
						value: '3000alphaT',
						label: '3000alphaT'
					},
					{
						value: '1000alphaT',
						label: '1000alphaT'
					},
					{
						value: 'gz1000alphaT',
						label: 'gz1000alphaT'
					},
					{
						value: 'gz2000alphaT',
						label: 'gz2000alphaT'
					},
					{
						value: '800alphaT',
						label: '800alphaT'
					},

					{
						value: 'bond',
						label: 'bond'
					},
					{
						value: 'index_future',
						label: 'index_future'
					},
					{
						value: 'future_cffex',
						label: 'future_cffex'
					},
					{
						value: 'future_commodity',
						label: 'future_commodity'
					},
					{
						value: '2000',
						label: '2000'
					},
					{
						value: '1000',
						label: '1000'
					},
					{
						value: '500',
						label: '500'
					},
					{
						value: 'a500',
						label: 'a500'
					},
					{
						value: 'a500alphaT',
						label: 'a500alphaT'
					},
					
					{
						value: '300',
						label: '300'
					},
					{
						value: '800',
						label: '800'
					},
					{
						value: '3000',
						label: '3000'
					},

					{
						value: 'gz1000',
						label: 'gz1000'
					},
					{
						value: 'gz2000',
						label: 'gz2000'
					},
					{
						value: 'scap_alphaT',
						label: 'scap_alphaT'
					},
					
					{
						value: 'web3',
						label: 'web3'
					},
				],
				program_code_list:[],
				screenWidth: document.body.clientWidth, // 屏幕尺寸
				screenHeight: document.body.clientHeight, // 屏幕尺寸
				useflag: true,
				dataname: "",
				product_options:[],
				product_code_options:[],
				setInterval_id:"",
			}
		},
		components: {
			headTop,
		},
		created() {

			this.get_account_list();
			this.get_tradesys_product();
			
		},


		activated() {
			let date = new Date();
			if (this.fixer == 'none') {
				this.setInterval_id= setInterval(this.refleash, 1000*120)
			} 
			// console.log("当前登入用户", this.$store.state.adminInfo.name);
		 //    if (this.tradesysPermission_list.indexOf (this.$store.state.adminInfo.permission) ==-1) {
			// 	console.log(this.$store.state.adminInfo.name,"未登入")
			// 	this.$message({type: 'error',	message: '没有权限',});
			// 	this.$router.push({
			// 		path: `/manage`
			// 	})
			// }
		},
		deactivated() {
			//console.log('kill setInterval_id',this.setInterval_id)
			clearInterval(this.setInterval_id)
		},
		computed: {},
		watch: {
			filterText(val) {
				this.$refs.tree.filter(val);
			}

		},
		methods: {

			refleash() {

				this.get_account_list();
				this.get_tradesys_account();

			},
			show_pw() {

				var that = this
				if (this.fixer == 'none') {
					return
				}

				setTimeout(function() {
					that.fixer = 'none';
				}, 15 * 60 * 1000);

				var that = this;
				this.$prompt('请输入密码', '提示', {
					confirmButtonText: '确定',
					cancelButtonText: '取消',
					inputType: 'password',
					inputType: 'password',
				}).then(({
					value
				}) => {
					if (value == '621890') {
						this.$message({
							type: 'success',
							message: '密码正确:'
						});

					} else {
						this.$message({
							type: 'error',
							message: '密码出错'
						});
						that.fixer = 'none'
					}
				}).catch(() => {
					this.$message({
						type: 'info',
						message: '取消输入'
					});
					that.fixer = 'none'
				});
			},
			get_tradesys_product() {
				var that = this;
				// console.log(that.lpapi2)
			
				let sql ="select distinct product_name,product_nick_name  from `config_product`  ORDER BY product_name  ;"
				that.$axios.post(that.lpapi2, "form=get_data&sql=" + sql).then(response => {
			
					console.log(response, 'LP_account_dict')
					let plat_list = []
					if (response.status = 200) {
						that.product_options = []
						for (var i = 0; i < response.data.length; i++) {
							let char = {
								value: response.data[i]['product_name'],
								label: response.data[i]['product_name'],
			
							};
			
							that.product_options.push(char);
						}
						that.product_code_options = []
						for (var i = 0; i < response.data.length; i++) {
							let char = {
								value: response.data[i]['product_nick_name'],
								label: response.data[i]['product_nick_name'],
									
							};
									
							that.product_code_options.push(char);
						}
					} else {
						console.log(response.data.statusCode);
					}
				})
			
			
			},
		
			get_account_list() {
				var that = this;
				let useflag_str = 'where use_flag="yes"'
				if (this.useflag == false) {
					useflag_str = ''
				}
				console.log('useflag',that.useflag)
				let sql = " select program_code,prod_code,account_zwname,account  from config_account " + useflag_str + ";"
				that.$axios.post(that.lpapi2, "form=get_data&sql=" + sql).then(response => {
					//console.log(response, 'data_tradesys_account');
					if (response.status = 200) {
						that.account_options = []
						for (var i = 0; i < response.data.length; i++) {

							let char = {
								value: response.data[i]['program_code'],
								label: response.data[i]['account_zwname']+'/'+ response.data[i]['prod_code']+'/'+ response.data[i]['account']+'/'+ response.data[i]['program_code'],
							};
							
							that.account_options.push(char);
						}

					} else {
						console.log(response.data.statusCode);
					}
				})
			},
			change_cell(column) {
				// console.log(scope.$index)
				var that = this
				if (this.fixer == 'none') {
					this.$message({
						message: '未选择修改人',
						type: 'error'
					});
					this.refleash()
					return
				}

				if (!this.account_data['program_code']) {
					this.$message({
						message: '未选择账户',
						type: 'error'
					});
					this.refleash()
					return
				}

				let sql2 = "UPDATE `config_account` SET `" + column + "` = '" + this.account_data[column] +
					"' WHERE `program_code` = '" + this.account_data['program_code'] + "';"
				sql2 = sql2.replace(/[\r\n]+/g, '');
				that.$axios.post(that.lpapi2, "form=do_sql&sql=" + sql2).then(response => {
					console.log(response, 'do_sql');
					if (response.status = 200) {
						this.$message({
							message: '更新',
							type: 'success'
						});
						// this.get_exchange_arrange()
					} else {
						return
						console.log(response.data.statusCode);
					}
				})
				let content = this.account_data['program_code'] + ' [' + column + ']:' + this.old_account_data[column] +
					'-->' + this.account_data[column]


				let sql4 = "INSERT INTO `config_fix` (`fixer`, `table`, `time`, `content`) VALUES ('" + this.fixer +
					"', 'config_account', CURRENT_TIMESTAMP, '" + content + "')"

				that.$axios.post(that.lpapi2, "form=do_sql&sql=" + sql4).then(response => {
					console.log(response, 'do_sql');
					if (response.status = 200) {
						this.$message({
							message: '更新',
							type: 'success'
						});
						// this.get_exchange_arrange()
					} else {
						return
						console.log(response.data.statusCode);
					}
				})
				if (column === 'use_flag' || column === 'symbol_range' || column === 'trade_mode' || column ==='product_strategy' || column ==='special_tag' || column ==='server' || column ==='mix_ratio_path' ) {
					let sql3 =
						"INSERT INTO `LP_account_log` (`date`, `account`, `log`,`log_type`,`worker`, `status`, `updatetime`) VALUES (CURDATE(),'" +
						this.account_data['account'] + "','" + content + "','运维','" + this.fixer + "', \
					'完成', CURRENT_TIMESTAMP)"

					that.$axios.post(that.lpapi2, "form=do_sql&sql=" + sql3).then(response => {
						console.log(response, 'do_sql');
						if (response.status = 200) {
							this.$message({
								message: '更新',
								type: 'success'
							});
							// this.get_exchange_arrange()
						} else {
							return
							console.log(response.data.statusCode);
						}
					})

				}




			},

			check_config() {
				var that = this;
				//console.log(that.account_choice)
				if (this.fixer == 'none') {
					this.$message({
						message: '未选择修改人',
						type: 'error'
					});
					return
				}
				if (this.account_data['program_code'].length < 3) {
					this.$message({
						message: this.account_data['program_code'],
						type: 'error'
					});
					return
				}


				that.$axios.post(that.lpapi2, "form=check_config" + "&program_code=" + this.account_data['program_code'])
					.then(response => {

						//console.log(response.data, 'hdfdata');
						if (response.status = 200) {
							this.$message({
								message: response.data,
								type: 'success'
							});

						} else {
							console.log(response.data.statusCode);
						}
					})

			},

			addnew_account() {
				var that = this
				if (this.fixer == 'none') {
					this.$message({
						message: '未选择修改人',
						type: 'error'
					});
					return
				}


				let sql2 = "INSERT IGNORE INTO `config_account`  (`account`,`account_type`,`server`,`account_zwname`,`program_code`,`use_flag`) \
				VALUES ('" + this.new_account['account'] + "','" + this.new_account['account_type'] + "','" + this.new_account[
						'server'] + "','" +
					this.new_account['account_zwname'] + "','" + this.new_account['program_code'] + "','no' );"

				that.$axios.post(that.lpapi2, "form=do_sql&sql=" + sql2).then(response => {
					console.log(response, 'do_sql');
					if (response.status = 200) {
						that.$message({
							message: '新增完成',
							type: 'success'
						});
						that.visible = false;
						
						that.accountchoice = that.new_account['program_code']
						that.get_tradesys_account();
						that.useflag = false
						console.log(that.useflag)
						that.get_account_list()
						that.new_account = {
							"account": "",
							"account_type": "",
							"account_zwname": "",
							"server": "",
							"program_code": "",
							"template_program_code": "",

						};
					} else {
						this.$message({
							message: '新增失败',
							type: 'error'
						});
						console.log(response.data);
					}
				})


			},
			get_tradesys_account() {
				var that = this;
				// console.log(that.lpapi2)
				that.account_data = {};
				let sql =
					"select *  from `config_account`  where program_code='" + this.accountchoice + "' ;"
				that.$axios.post(that.lpapi2, "form=get_data&sql=" + sql).then(response => {

					console.log(response, 'conf_tradesys_account')

					if (response.status = 200) {
						that.account_data = response.data[0];
						let obj = JSON.stringify(that.account_data)
						that.old_account_data = JSON.parse(obj)


					} else {
						console.log(that.account_data);
					}
					console.log(that.old_account_data);
				})


			},
			get_tradesys_account_compare() {
				var that = this;
				// console.log(that.lpapi2)
				that.compareaccount_data = {};
				let sql =
					"select *  from `config_account`  where program_code='" + this.accountcompare + "' ;"
				that.$axios.post(that.lpapi2, "form=get_data&sql=" + sql).then(response => {

					console.log(response, 'conf_tradesys_account')

					if (response.status = 200) {
						that.compareaccount_data = response.data[0];


					} else {
						console.log(that.compareaccount_data);
					}
				})


			},




		},
	}
</script>












<style>
	.my-badge {
		color: #fff;
		background: #99a9bf;
		margin-left: 10px;
		padding: 3px 8px;
		font-size: 10px;
		/* line-height: 12px; */
		border-radius: 20px;
		text-align: center;
	}

	.table_container {
		margin: 20px 5%;
		/* background-color: #0000FF; */
	}

	.input_item {
		display: flex;
		align-items: center;
		padding-top: 20px;
		justify-content: center;

	}

	.input_item_title {

		width: 250px;
		padding-right: 5px;
		text-align: right;
		/* background-color: red; */
	}

	.show_item {
		width: 100%;
		overflow: auto;
		display: flex;
		align-items: center;
		padding-top: 33px;
		padding-left: 30px;
		justify-content: flex-start;
		/* background-color: red */
	}
</style>
